.cl-crud {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	padding: 10px;
	box-sizing: border-box;
	background-color: #fff;
	overflow: hidden;

	&>.el-row {
		margin-bottom: 10px;

		&:last-child {
			margin-bottom: 0;
		}
	}

	.cl-flex1 {
		flex: 1;
		font-size: 12px;
	}

	.cl-search-key {
		display: flex;
		margin-left: 10px;

		&__input {
			width: 250px;
		}

		&__select {
			width: 150px;
			margin-right: 10px;
		}

		&__button {
			margin-left: 10px;
		}
	}

	.cl-adv-btn {
		& > .el-button {
			margin-left: 10px;

			i {
				margin-right: 5px;
			}
		}
	}

	.cl-table {
		width: 100%;

		.el-table {
			.el-loading-mask {
				.el-loading-spinner {
					.el-icon-loading {
						font-size: 25px;
						color: #000;
					}

					.el-loading-text {
						color: #666;
						margin-top: 5px;
					}
				}
			}

			&.el-loading-parent--relative {
				box-sizing: border-box;
			}
		}

		&__op {
			.el-dropdown-link {
				cursor: pointer;
				font-size: 12px;
			}
		}
	}

	.cl-query {
		margin: 0 10px;
		border-radius: 3px;
		overflow: hidden;
		display: flex;

		button {
			border: 0;
			background-color: #fff;
			font-size: 12px;
			outline: none;
			cursor: pointer;
			color: #666;
			white-space: nowrap;

			&:hover {
				color: #6FA8FF;
			}

			&.is-active {
				color: #409EFF;
			}

			span {
				display: inline-block;
				padding: 0 15px;
				border-right: 1px solid #ddd;
			}

			&:last-child {
				span {
					border: 0;
				}
			}
		}
	}

	.cl-filter {
		display: flex;
		align-items: center;
		margin: 0 10px;

		&__label {
			font-size: 12px;
			margin-right: 10px;
			white-space: nowrap;
		}
	}

	.el-input-number {
		&__decrease, &__increase {
			border: 0;
			background-color: transparent;
		}
	}
}

.cl-adv-search {
	&__container {
		height: calc(100% - 50px);
		overflow-y: auto;
		padding: 10px 20px;

		.el-form-item__content {
			&>div {
				width: 100%;
			}
		}
	}

	&__footer {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		height: 40px;
		margin: 0 10px;
	}

	.el-drawer {
		outline: none;

		&__header {
			span {
				outline: none;
				font-size: 15px;
			}
		}

		&__close-btn {
			outline: none;
		}
	}
}

.cl-form {
	.el-form-item {
		.el-input-number {
			&__decrease, &__increase {
				border: 0;
				background-color: transparent;
			}
		}
	}

	&-item {
		display: flex;

		&__prepend {
			margin-right: 10px;
		}

		&__component {
			flex: 1;
			width: 100%;

			&>div {
				width: 100%;
			}
		}

		&__append {
			margin-left: 10px;
		}

		&__collapse {
			height: 33px;
			width: 100%;
			cursor: pointer;
			font-size: 12px;

			.el-divider {
				margin: 16px 0;

				&__text {
					font-size: 12px;
				}
			}

			i {
				margin-left: 6px;
			}
		}
	}

	&__footer {
		display: flex;
		justify-content: flex-end;
	}
}

.cl-dialog {
	.el-dialog {
		&__header {
			padding: 10px !important;
			text-align: center;
			border-bottom: 1px solid #f7f7f7;

			.el-dialog__title {
				font-size: 15px;
				letter-spacing: 0.5px;
			}

			.el-dialog__headerbtn {
				display: none;
				top: 13px;

				.el-dialog__close {
					font-size: 18px;
				}
			}

			&-slot {
				&.is-drag {
					-moz-user-select: none;
					-webkit-user-select: none;
					-ms-user-select: none;
					-khtml-user-select: none;
					user-select: none;
					cursor: move;
				}
			}
		}

		&__body {
			padding: 20px;
		}

		&__footer {
			padding-bottom: 15px;
		}
	}

	&__header {
		height: 25px;
		line-height: 25px;
		text-align: center;
		position: relative;
	}

	&__title {
		display: block;
		font-size: 15px;
		letter-spacing: 0.5px;
	}

	&__headerbtn {
		display: flex;
		justify-content: flex-end;
		position: absolute;
		right: 0;
		top: 0;
		z-index: 9;

		.minimize, .maximize, .close {
			display: flex;
			align-items: center;
			justify-content: center;
			height: 25px;
			width: 40px;
			border: 0;
			background-color: #fff;
			cursor: pointer;
			outline: none;

			i {
				font-size: 16px;

				&:hover {
					opacity: 0.7;
				}
			}
		}
	}

	&.hidden-header {
		.el-dialog__header {
			display: none;
		}
	}
}

.cl-crud__op-dropdown-menu {
	.el-button {
		width: 100%;
		text-align: left;
	}
}
